<template>
  <div id="app">
    <!-- <img alt="Vue logo" src="./assets/logo.png"> -->
    

    <div class="wrap">

        <!-- <HelloWorld msg="Welcome to Your Vue.js App"/> -->
        <AppHead/>
        <div class="content">
          <div class="left">
            <card v-for="item in cardDatas" v-bind:key="item.tit" v-bind:da="item"></card>
          </div>
          <div class="right">
            <div class="circle"></div>
            <img src="./assets/logo1.png" alt="" class="logo1">
             <a href="./Client/FireFly-32bit.exe" class="btn">WIN32位下载</a>
             <a href="./Client/FireFly-64bit.exe" class="btn">WIN64位下载</a>
          </div>
        </div>

    </div>

    <div class="bt-bg"></div>
  </div>
</template>

<script>
// import HelloWorld from './components/HelloWorld.vue'
import AppHead from './components/AppHead.vue'
import Card from './components/Card.vue'
import icon01 from "./assets/icon01.png"
import icon02 from "./assets/icon02.png"
import icon03 from "./assets/icon03.png"

export default {
  name: 'App',
  data:function(){
    return {
    cardDatas:[
      {tit:"应用数据",count:"495,7",icon:icon01,cls:"bg-blue"},
      {tit:"用户数",count:"349,57",icon:icon02,cls:"bg-green"},
      {tit:"任务执行次数",count:"194,957",icon:icon03,cls:"bg-yellow"}
      ]
    }
  },
  components: {
    // HelloWorld,
    AppHead,
    Card
  }
}
</script>

<style>
@media screen and (min-aspect-ratio:16/9){
    html{
      font-size: 9.5vh;
    }
}
*{
  margin: 0;
  padding: 0;
}
html,body{
  height: 100%;
}
html{
  overflow: hidden;
}
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* text-align: center; */
  color: #2c3e50;
  height: 100%;
  /* background:url("./assets/bg-header.png") no-repeat top center,linear-gradient(to right,#0E1248,#1D369F); */
  background:url("./assets/bg.png") no-repeat top center;
   /* background:linear-gradient(to right,#0E1248,#1D369F); */
  background-size: cover;
}
.bt-bg{
    position: absolute;
    bottom: -0.59rem;
    right: -1.22rem;
    width: 3.4rem;
    height: 1.63rem;
    background-color: rgba(255, 255, 255, 0.1);
    transform: rotate(-32deg);
}
.wrap{
  width: 16rem;
  margin: 0 auto;
  
}
.content{
  /* overflow: hidden; */
  display: flex;
  justify-content: space-between;
  margin-top: .5rem;
}
.left{
  width: 32%;
}
.right{
  position: relative;
  width: 8rem;
  height: 8rem;
  /* background:url("./assets/logo1.png") no-repeat center, url("./assets/bg-circle.png") no-repeat center; */
  /* background:url("./assets/ani2.gif") no-repeat center;  */
  background-size: contain;
  display: flex;
  justify-content: space-evenly;
  align-items: flex-end;
  
  top:-1rem;
}

.circle{
  position: absolute;
  left:0;
  top: 0;
  width: 8rem;
  height: 8rem;
  background:url("./assets/c1.png") no-repeat center; 
  background-size: contain;
  /* animation: rotate 8s linear infinite; */
  /* border-radius: 50%; */

}
@keyframes rotate {
  0%{
    transform: rotate(0deg);
  }
  100%{
    transform: rotate(360deg);
  }
}
.logo1{
  position: absolute;
  width: 2rem;
  left: 0;
  right: 0;
  top:0;
  bottom: 0;
  margin: auto;
  margin-left: 3.35rem;
}
.btn{
  padding: 0 .4rem;
  border-radius: .5rem;
  background: linear-gradient(to right,#0845C3,#079DD3);
  line-height: 1rem;
  color: #fff;
  font-size: .36rem;
  z-index: 999;
  text-decoration: none;
}
</style>
